import axios from 'axios'

export function Categories(PageNumber,Sort,MinPrice,MaxPrice,CategoryId) {
    return axios.get('/api/Products', {
      params: {
        PageNumber,
        PageSize: 30,
        Sort,
        MinPrice,
        MaxPrice,
        CategoryId
      }
    }).then((response) => {
      return Promise.resolve(response.data)

    })
      .catch(function (error) {
        console.log(error)
      })
  }
